#!/bin/bash
echo Rebuilding monitord distribution tgz...
rm -rf OUT
mkdir OUT
cp *.py OUT
rm OUT/masterd.py # not part of client
chmod 755 OUT/monitord.py
mkdir OUT/protocol
cp protocol/*.py OUT/protocol/
mkdir OUT/monitor
cp monitor/*.py OUT/monitor/
echo Creating archive...
cd OUT
mkdir monitord
mv * monitord
tar -cvzf monitord-1.0.tgz monitord
echo Done!
